package com.systemic.service;

import com.systemic.pojo.LoveBank;
import com.systemic.pojo.LoveBankCount;
import com.systemic.vo.LoveBankInfo;
import com.systemic.vo.LoveBankLog;
import com.systemic.vo.PageVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @ClassName: LoveBankService
 * @Description:
 * @Author:
 * @CreateTime: 2024-02-03 20:20
 * @Version:
 **/
public interface LoveBankService {

    /**
     * 存款
     * @param img
     * @param loveBank
     * @return
     */
    int deposit(MultipartFile img, LoveBank loveBank);

    /**
     * 取款
     * @param img
     * @param loveBank
     * @return
     */
    int withdraw(MultipartFile img, LoveBank loveBank);


    /**
     * 存取记录
     * @param pageVo
     * @return
     */
    List<LoveBankLog> selectList(PageVo pageVo);


    /**
     * 存取年统计
     * @param uid
     * @return
     */
    LoveBankCount selectCount(Integer uid);


    /**
     * 存取款详情
     * @param id
     * @return
     */
    LoveBankInfo loveBankInfo(Integer id);


}
